package net.uhuijia.sys.area.controller;

import net.uhuijia.sys.area.persistence.model.SysArea;
import net.uhuijia.sys.area.service.SysAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value="/client/area")
public class SysAreaClientController {

    @Autowired
    private SysAreaService sysAreaService;
    /**
     * @Author xzj
     * @Description //根据areaId获取地区信息
     * @Date  2018/10/9
     * @Param
     * @return
     **/
    @RequestMapping(value = "/getAreaById")
    public SysArea getAreaById(@RequestParam("areaId") String areId){
        SysArea  sysArea = this.sysAreaService.get(areId);
        return sysArea;
    }



}
